package simple

import (
	"strconv"
)

/*
*
执行用时分布
20ms
击败
17.48%
*/
func isPalindrome(x int) bool {
	str := strconv.Itoa(x)
	l, r := 0, len(str)-1
	for l < r {
		if str[l] == str[r] {
			l++
			r--
			continue
		}
		return false
	}
	return true
}
